package com.heima.model.comment.dtos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull
    private long articleId;

    @Size(min = 0, max = 140, message = "评论内容不得操作140字")
    private String content;
}
